{extend name="public:layout" /}

{block name="title"}
    <title>{:site('siteName')}-购买共享账户</title>
{/block}

{block name="css"}
    <style>
        .layui-form-label{width:60px;    padding: 9px 6px;}
        .layui-input-block{margin-left:75px;margin-right:10px;}
        .layui-form-item { margin-bottom: 9px;}
        .layui-input::-webkit-input-placeholder{ color: #999;font-size:12px;}
        .layui-input::-moz-placeholder{  color: #999;font-size:12px; }
        .layui-input:-ms-input-placeholder{color: #999;font-size:12px;}
    </style>
{/block}

{block name="content"}
    <div class="head">购买复投账户</div>
    <div class="buy_yaoqing">
        <p><span class="buy_yaoqing_span0">当前价格：</span><span class="buy_yaoqing_span1">{$config['son_price']}元</span><span class="buy_yaoqing_span2">每个账户分红满{$config['son_out']}自动出局</span></p>
        <p><span class="buy_yaoqing_span0">剩余{:config('currency')['recharge']}：</span><span class="buy_yaoqing_span1">{$U['recharge']}</span><span class="buy_yaoqing_span2">预计可以购买{:intval($U['recharge'] / $config['son_price'])}个共享账户</span></p>
        <p><span class="buy_yaoqing_span0">已经购买：</span><span class="buy_yaoqing_span1">{$myNum}</span><span class="buy_yaoqing_span2">剩余{$config['son_cap'] - $myNum}个共享账户可以购买</span></p>
    </div>
    <form class="layui-form user-data" action="{:url('index/account/buyson')}">
        <div class="layui-form-item" style="margin-top: 15px;">
            <label class="layui-form-label">购买数量</label>
            <div class="layui-input-block">
                <input type="text" name="num" value="" lay-verify="required" placeholder="最多拥有{$config['son_cap']}个复投账户" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">支付密码</label>
            <div class="layui-input-block">
                <input type="password" name="pwd" value="" placeholder="请输入支付密码验证" lay-verify="required" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <div style="margin: 0 10px;">
                <input type="hidden" name="__token__" value="{$Request.token}" />
                <button class="layui-btn layui-btn-main" lay-submit style="width:100%;">确定</button>
            </div>
        </div>
    </form>
{/block}

{block name="script"}{/block}